#define _CRT_SECURE_NO_WARNINGS 1
#include "List.hpp"

void testlist()
{
	ghs::List<int> lt;
	lt.push_back(1);
	lt.push_back(2);
	lt.push_back(3);
	lt.push_back(4);

	ghs::ListIterator<int> it = lt.begin();
	while (it != lt.end())
	{
		std::cout << *it << " ";
		it++;
	}
	std::cout << std::endl;

	lt.pop_back();
	for (auto e : lt)
	{
		std::cout << e << " ";
	}
	std::cout << std::endl;
	lt.pop_back();
	for (auto e : lt)
	{
		std::cout << e << " ";
	}
	std::cout << std::endl;
}

int main()
{
	testlist();

	return 0;
}